using System.ComponentModel.DataAnnotations;

namespace ERP.ProductionManage.Dtos
{
    /// <summary>
    /// 创建客户订单详情 DTO
    /// </summary>
    public class CreateCustomerOrderDetailDto
    {
        /// <summary>
        /// 客户订单ID
        /// </summary>
        [Required]
        public int CustomerOrderId { get; set; }

        /// <summary>
        /// 物料ID
        /// </summary>
        [Required(ErrorMessage = "物料不能为空")]
        public int MaterialId { get; set; }

        /// <summary>
        /// 需求数量
        /// </summary>
        [Required(ErrorMessage = "需求数量不能为空")]
        [Range(1, int.MaxValue, ErrorMessage = "需求数量必须大于0")]
        public int Num { get; set; }

        /// <summary>
        /// 规格尺寸
        /// </summary>
        public string Size { get; set; }
    }
} 